﻿using System;
using System.Windows.Forms;
using System.Diagnostics;

namespace UI
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Process[] processList = Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName);
            if (processList.Length < 2)
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainFrm());
            }
            else
            {
                //MessageBox.Show("同一个程序不要启动两次");
            }
        }
    }
}
